package com.ruoyi.wx.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author moxiu
 * @since 2021-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pt_question")
@ApiModel(value="PtQuestion对象", description="")
public class PtQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "题目id")
    @TableId(value = "question_id", type = IdType.AUTO)
    private Long questionId;

    @ApiModelProperty(value = "实验id")
    @TableField("exp_id")
    private Long expId;

    @ApiModelProperty(value = "题号")
    @TableField("question_no")
    private String questionNo;

    @ApiModelProperty(value = "题目")
    @TableField("question")
    private String question;

    @ApiModelProperty(value = "选项")
    @TableField("option")
    private String option;

    @ApiModelProperty(value = "正确答案")
    @TableField("answer")
    private String answer;

    @ApiModelProperty(value = "解析")
    @TableField("analysis")
    private String analysis;

    @ApiModelProperty(value = "分值")
    @TableField("score")
    private Double score;

    @ApiModelProperty(value = "类型（1:选择题、2:判断题、3:简答题）")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否启用（1：启用；0：禁用）")
    @TableField("is_enable")
    private Boolean isEnable;


}
